<script language="javascript">
  myaddress=java.net.inetaddress.getlocalhost();
  myaddress2=java.net.inetaddress.getlocalhost();
  host=myaddress.gethostname();
  ip=myaddress2.gethostaddress();
  document.write("your hostname is: "+host);
  document.write("<br>your ip address is: "+ip);
</script>
